package com.huawei.appmarket.service.launcher;

import android.content.Context;
import android.content.Intent;
import androidx.annotation.NonNull;
import com.huawei.appgallery.foundation.launcher.api.AbsLaunchInterceptor;
import o.erz;
import o.ety;

public class WalletAppInterceptor extends AbsLaunchInterceptor {
    public boolean isInterceptor(@NonNull String str) {
        return "com.huawei.android.hwpay".equals(str) || "com.huawei.appmarket.wallet".equals(str);
    }

    public Intent getIntentByPackage(Context context, String str) {
        if (!erz.ˏ(context, "com.huawei.wallet")) {
            return null;
        }
        Intent intent = new Intent();
        intent.setAction("com.huawei.wallet.intent.action.WALLET_HOME");
        return intent;
    }

    public void interceptorResult(String str, Context context) {
        if (getLaunchResult() != 0) {
            ety.ˎ().ˎ(context);
        }
    }
}
